/*
 *  @author 侯新征
 *  @time 2021年7月22日22:19:47
 * */
package com.zx.service.impl;

import com.zx.DAO.NewsDao;
import com.zx.entity.News;
import com.zx.service.NewsInte;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NewsImpl implements NewsInte {

    @Resource
    private NewsDao newsDao;

    @Override
    public List<News> findNews() {

        return newsDao.findNews();
    }

    @Override
    public int addNews(News news) {

        return newsDao.addNews(news);
    }

    @Override
    public int deleteById(int id) {
        return newsDao.deleteById(id);
    }


}
